package com.zdzx.model.service.socket;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
//@Document(collection = "message") // 指定表的名称
@Builder
public class Message {

   // @Id
   // private ObjectId id;
    private String msg;
    private String code;  //1 成功 0下线
    /**
     * 消息状态，1-未读，2-已读
     */
  //  @Indexed
   // private Integer status;
    //@Field("send_date")
   // @Indexed
   // private Date sendDate;
  //  @Field("read_date")
   // private Date readDate;
   // @Indexed
    private UserMsg from;
   // @Indexed
    private UserMsg to;

}
